package com.oweight.sagacious.payment;

import com.oweight.sagacious.auth.client.SageAuthClient;
import com.oweight.sagacious.common.annotation.SageBootApplication;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * SAGE-支付服务
 *
 * @author 周广明
 * @version v1 2019/11/18 20:23
 */
@Slf4j
@SageAuthClient
@EnableFeignClients(basePackages = {
        "com.oweight.sagacious.auth.client.feign",
        "com.oweight.sagacious.payment.**.*"
})
@SageBootApplication
@EnableDiscoveryClient
public class SagePaymentBootstrap {

    public static void main(String[] args) {
        SpringApplication.run(SagePaymentBootstrap.class, args);
        log.info("SAGE-支付服务,启动成功！");
    }
}
